package com.ficus.road.maintain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author xiawen yang
 * 跳点运维
 * @date 2022/11/15 下午2:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OpsJumpPoint {

    private String date;

    private String carId;

    private List<JumpPoint> jumpPoints;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class JumpPoint {

        private int startIdx;

        private int endIdx;

        private List<GpsInfo> data;
    }

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class GpsInfo {
        private Double longitude;
        private Double latitude;
        private Long timestamp;
    }
}
